package test2;

/**
 * @author oldliu
 * @since 1.0
 */
public class InnerClassTest {
    public static void main(String[] args) {
        //class A implements Runable{}
        //th=new Thread(new A())....
//        Thread th=new Thread(
////                new Runnable() {
////                    @Override
////                    public void run() {
////                        for (int i = 0; i < 20; i++) {
////                            System.out.println("Thread print i:"+i);
////                        }
////                    }
////                }
////        );

        Thread th=new Thread(()->{
            for (int i = 0; i < 20; i++) {
                System.out.println("thread print i="+i);
            }
        });
        th.start();
    }
}
